package com.bole.feign.reception;


import com.bole.dto.car.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "BOLECAR-SRARCH-SERVICE")
public interface EsFeign {

    @GetMapping("/search/searchInfo")
    Page listSearchByName(@RequestParam("pageNum") Integer pageNum, @RequestParam("pageSize") Integer pageSize, @RequestParam("searchName") String searchName);
    @PostMapping("/search/selectCarSeriesId")
    Page selectCarSeriesId(@RequestParam("pageNum") Integer pageNum,@RequestParam("pageSize")  Integer pageSize,
                           @RequestParam("carSeriesId") Long carSeriesId,@RequestParam("detailsId") String detailsId);

    @PostMapping("/search/updateStatus")
    void updateStatus(@RequestParam("carId") Long carId);
}
